package com.yyh1;

import com.yyh1.Person;

public class Player extends Person {
    public String action;
    public String score;

    public Player() {
    }

    public Player(String name, int age, String sex, String action, String score) {
        super(name, age, sex);
        this.action = action;
        this.score = score;
    }

    public void introduction(){
        System.out.println("大家好！我是："+name);
        System.out.println("今年"+age);
        System.out.println("我擅长的运动项目是："+action);
        System.out.println("历史最好成绩是："+score);
    }
}
